package com.ruiyian.project.equipment.service.impl;

import com.ruiyian.project.equipment.domain.EquipmentType;
import com.ruiyian.project.equipment.mapper.EquipmentTypeMapper;
import com.ruiyian.project.equipment.service.EquipmentTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2021/1/25
 * Desc: 设备类型实现
 */
@Service
public class EquipmentTypeServiceImpl implements EquipmentTypeService {
    @Autowired
    private EquipmentTypeMapper equipmentTypeMapper;
    /**
     * 查询列表
     * @param equipmentType
     * @return
     */
    @Override
    public List<EquipmentType> selectList(EquipmentType equipmentType) {
        return equipmentTypeMapper.selectList(equipmentType);
    }

    /**
     * 根据id获取对象
     * @param id
     * @return
     */
    @Override
    public EquipmentType findOne(Long id) {
        return equipmentTypeMapper.findOne(id);
    }

    /**
     * 删除
     * @param id
     */
    @Override
    public void delete(Long id) {
        equipmentTypeMapper.delete(id);
    }

    /**
     * 编辑
     * @param equipmentType
     */
    @Override
    public void edit(EquipmentType equipmentType) {
        equipmentTypeMapper.edit(equipmentType);
    }

    /**
     * 保存
     * @param equipmentType
     */
    @Override
    public void save(EquipmentType equipmentType) {
        equipmentTypeMapper.save(equipmentType);
    }
}
